//
//  portfolioDetail.m
//  HaoDeCaiFu
//
//  Created by 张玉鹏 on 2017/11/20.
//  Copyright © 2017年 郑开宏. All rights reserved.
//

#import "portfolioDetail.h"

@implementation portfolioDetail
+ (NSDictionary *)mj_objectClassInArray
{
    return @{
             @"portfolioFund" : @"portfolioDetail"
             };
}

-(NSString*)portfolioStrategy
{
    if ([_portfolioStrategy isEqual:[NSNull null]]||!_portfolioStrategy) {
        _portfolioStrategy=@"暂无";
    }
    else
    {
       _portfolioStrategy=[_portfolioStrategy stringByReplacingOccurrencesOfString:@"奕丰" withString:@""];
    }
    return _portfolioStrategy;
}

-(void)setFundType:(NSString *)fundType
{
    if ([fundType isEqualToString:@"MM"]) {
        _fundType=@"货币型";
    }
    else if ([fundType isEqualToString:@"BOND"]) {
        _fundType=@"债券型";
    }
    else if ([fundType isEqualToString:@"MIXED"]) {
        _fundType=@"混合型";
    }
    else if ([fundType isEqualToString:@"CP"]) {
        _fundType=@"保本型";
    }
    else if ([fundType isEqualToString:@"EQ"]) {
        _fundType=@"股票型";
    }
    else if ([fundType isEqualToString:@"AI"]) {
        _fundType=@"另类型";
    }
    else if ([fundType isEqualToString:@"INDEX"]) {
        _fundType=@"指数型";
    }
    else if ([fundType isEqualToString:@"ST"]) {
        _fundType=@"分级型";
    }
    else if ([fundType isEqualToString:@"UNKNOW"]) {
        _fundType=@"其他";
    }
}

@end
